find the factorial of a number javascript